package com.yand.thinkingInJava.thinkingInJava21.ShareResource;

public class SerialNumberGenerator {

    private static volatile int serialNumber = 0;

    public static int nextSerialNumber(){
        return serialNumber++;
    }


}
